const groupDao = require('../dao/group');

class SysGroupService {
    
    queryAllGroup(req, res){
        groupDao.all().then(rows => {
            res.json({
                list: rows,
                errCode: "000000",
            });
        },(err) => {
            res.json({
                errMsg: err.errno,
                errCode: err.code,
            });
        });
    }

}

const sysGroupService = new SysGroupService();

module.exports=sysGroupService;